<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzb.erp.api.pc.sys.mapper.NoticeMapper">
    <select id="getList" resultType="com.hzb.erp.api.pc.sys.entity.Notice">
        select t1.* from notice t1
        <where>
            <if test="param.title != null and param.title.trim() != ''">
                AND t1.name like concat('%', #{param.title}, '%')
            </if>
            and t1.deleted = 0
        </where>
        ORDER BY t1.id DESC
    </select>
</mapper>
